#ifndef UnixPtty_First
#ifdef __GNUG__
#pragma interface
#endif
#define UnixPtty_First

#include "PttyConnection.h"

class PttyInputHandler;

//---- UnixPtty ----------------------------------------------------------------

class UnixPtty : public PttyImpl {
public:
	MetaDef(UnixPtty);
	UnixPtty();   
	~UnixPtty();
	int SpawnSlave(const char *name, const char **args);
	int KillChild();
	int Flush();
	int GetMode();
	int BecomeConsole();
	int SetWinSize(const Point &cr);
private:
	char *slavepty;
	PttyInputHandler *inputHandler;
};

#endif
